package com.mingqijia.gassafety.db.mapper;

import com.mingqijia.gassafety.db.entity.RecordDetector;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * 探测器上报数据表 Mapper 接口
 * </p>
 *
 * @author guoliang.lao
 * @since 2022-08-04
 */
@Mapper
@Repository
public interface RecordDetectorMapper extends BaseMapper<RecordDetector> {

    List<RecordDetector> selectByRecordIdAndDeviceId(@Param("id") Long id, @Param("deviceId")String deviceId);

    List<Long> selectByRecordIdAndDeviceIds(@Param("imeis")List<String> imeis, @Param("spId")String spId
            , @Param("equipmentType")String equipmentType);

    List<RecordDetector> selectByRecordId(@Param("recordIds")List<Long> recordIds);
}
